<?php


namespace app\controllers;


use Yii;
use yii\web\Controller;

class WebController extends Controller
{

    public function actionIndex(){
        Yii::$app->websocket->send([
            'channel' => 'push-msg',
            'message' => Yii::$app->request->get('message', '用户 Gunn 送给主播 象拔河 一架飞机！')
        ]);

        return true;
    }
}